package Thread;

public class demo5 {
    public static void main(String[] args) {
        Runnable runnable = new Runnable(){
            @Override
            public void run() {
                while (true){
                    System.out.println("thread");
                }
            }
        };
        Thread t = new Thread(runnable);
        t.start();
        while(true){
            System.out.println("main");
        }
    }
}
